﻿<phone:PhoneApplicationPage
    x:Class="Studio77.RuneMaster.Pages.StagePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="False">
	<phone:PhoneApplicationPage.Resources>
		<Style x:Key="ButtonStyleStageItem" TargetType="Button">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Pressed">
										<Storyboard>
											<DoubleAnimation Duration="0" To="1.05" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="image1" d:IsOptimized="True"/>
											<DoubleAnimation Duration="0" To="1.05" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
											<DoubleAnimation Duration="0" To="1.05" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="image1" d:IsOptimized="True"/>
											<DoubleAnimation Duration="0" To="1.05" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="Disabled">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image1">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Collapsed</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="MouseOver"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Focused"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Image x:Name="image1" Source="/Images/stageItem.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5">
								<Image.RenderTransform>
									<CompositeTransform/>
								</Image.RenderTransform>
							</Image>
							<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RenderTransformOrigin="0.5,0.5">
								<ContentPresenter.RenderTransform>
									<CompositeTransform/>
								</ContentPresenter.RenderTransform>
							</ContentPresenter>
							<Image x:Name="image" Source="/Images/stageItem_lock.png" Stretch="Fill" Visibility="Collapsed"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</phone:PhoneApplicationPage.Resources>

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Viewbox>
		<Grid x:Name="LayoutRoot" Background="Transparent" Height="800" Width="480">
			<Grid.RowDefinitions>
				<RowDefinition Height="53*"/>
				<RowDefinition Height="747*"/>
			</Grid.RowDefinitions>
			<Image Source="/Images/stagebg.png" Stretch="Fill" Grid.RowSpan="2"/>
			<Image x:Name="imgGameModeEasy" Source="/Images/easy.png" HorizontalAlignment="Center" VerticalAlignment="Center" Height="30"/>
			<Button Tag="1" Click="btnStage_Click_1" x:Name="btnStage1" Content="1" Margin="32,55,340,585" Grid.Row="1" Style="{StaticResource ButtonStyleStageItem}" Foreground="#FF474747" FontSize="48" FontFamily="Segoe WP" FontWeight="Bold"/>
            <Button Tag="2" Click="btnStage_Click_1" x:Name="btnStage2" Content="2" Margin="185,55,187,585" Grid.Row="1" Style="{StaticResource ButtonStyleStageItem}" Foreground="#FF474747" FontSize="48" FontFamily="Segoe WP" FontWeight="Bold"/>
            <Button Tag="3" Click="btnStage_Click_1" x:Name="btnStage3" Content="3" Margin="339,55,33,585" Grid.Row="1" Style="{StaticResource ButtonStyleStageItem}" Foreground="#FF474747" FontSize="48" FontFamily="Segoe WP" FontWeight="Bold" Width="108" Height="107"/>
            <Button Tag="6" Click="btnStage_Click_1" x:Name="btnStage6" Content="6" Margin="32,225,340,415" Grid.Row="1" Style="{StaticResource ButtonStyleStageItem}" Foreground="#FF474747" FontSize="48" FontFamily="Segoe WP" FontWeight="Bold" IsEnabled="False"/>
            <Button Tag="5" Click="btnStage_Click_1" x:Name="btnStage5" Content="5" Margin="185,225,187,415" Grid.Row="1" Style="{StaticResource ButtonStyleStageItem}" Foreground="#FF474747" FontSize="48" FontFamily="Segoe WP" FontWeight="Bold" IsEnabled="False"/>
            <Button Tag="4" Click="btnStage_Click_1" x:Name="btnStage4" Content="4" Margin="339,225,33,415" Grid.Row="1" Style="{StaticResource ButtonStyleStageItem}" Foreground="#FF474747" FontSize="48" FontFamily="Segoe WP" FontWeight="Bold" Width="108" Height="107"/>
            <Button Tag="7" Click="btnStage_Click_1" x:Name="btnStage7" Content="7" Margin="32,405,340,235" Grid.Row="1" Style="{StaticResource ButtonStyleStageItem}" Foreground="#FF474747" FontSize="48" FontFamily="Segoe WP" FontWeight="Bold" IsEnabled="False"/>
            <Button Tag="8" Click="btnStage_Click_1" x:Name="btnStage8" Content="8" Margin="185,405,187,235" Grid.Row="1" Style="{StaticResource ButtonStyleStageItem}" Foreground="#FF474747" FontSize="48" FontFamily="Segoe WP" FontWeight="Bold" IsEnabled="False"/>
            <Button Tag="9" Click="btnStage_Click_1" x:Name="btnStage9" Content="9" Margin="339,405,33,235" Grid.Row="1" Style="{StaticResource ButtonStyleStageItem}" Foreground="#FF474747" FontSize="48" FontFamily="Segoe WP" FontWeight="Bold" Width="108" Height="107" IsEnabled="False"/>
            <Button Tag="10" Click="btnStage_Click_1" x:Name="btnStage10" Content="10" Margin="339,578,33,62" Grid.Row="1" Style="{StaticResource ButtonStyleStageItem}" Foreground="#FF474747" FontSize="48" FontFamily="Segoe WP" FontWeight="Bold" Width="108" Height="107" IsEnabled="False"/>
			<Grid Margin="143,104,297,631" Grid.Row="1">
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="14,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="28,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
        
			</Grid>
			<Grid Margin="297,104,143,631" Grid.Row="1">
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="14,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="28,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
        
			</Grid>
			<Grid Margin="143,273,297,462" Grid.Row="1">
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="14,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="28,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
        
			</Grid>
			<Grid Margin="297,273,143,462" Grid.Row="1">
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="14,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="28,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
        
			</Grid>
			<Grid Margin="143,455,297,280" Grid.Row="1">
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="14,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="28,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
        
			</Grid>
			<Grid Margin="297,455,143,280" Grid.Row="1">
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="14,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="28,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
        
			</Grid>
			<Grid Margin="373,186,67,549" Grid.Row="1" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto">
				<Grid.RenderTransform>
					<CompositeTransform Rotation="-90"/>
				</Grid.RenderTransform>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="14,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="28,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
        
			</Grid>
			<Grid Margin="63,363.5,377,371.5" Grid.Row="1" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto">
				<Grid.RenderTransform>
					<CompositeTransform Rotation="-90"/>
				</Grid.RenderTransform>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="14,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="28,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
        
			</Grid>
			<Grid Margin="373.5,538.5,66.5,196.5" Grid.Row="1" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto">
				<Grid.RenderTransform>
					<CompositeTransform Rotation="-90"/>
				</Grid.RenderTransform>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="14,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
				<Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="12" Margin="28,0,0,0" Stroke="Black" VerticalAlignment="Top" Width="12"/>
        
			</Grid>
			<Image x:Name="imgGameModeNormal" Source="/Images/normal.png" HorizontalAlignment="Center" VerticalAlignment="Center" Height="30" Margin="0,12,0,11" Width="168" Visibility="Collapsed"/>
			<Image x:Name="imgGameModeHard" Source="/Images/hard.png" HorizontalAlignment="Center" VerticalAlignment="Center" Height="30" Margin="156,12,156,11" Width="168" Visibility="Collapsed"/>
        
		</Grid>

	</Viewbox>

</phone:PhoneApplicationPage>